using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ADESSA.Entities;
using ADESSA.Business;
using FetCo.Data;
using FetCo.Framework;


public partial class Make_Payment : System.Web.UI.Page
{
    #region Viarible
    ADESSA.Entities.Member _Member = new ADESSA.Entities.Member();
    
    #endregion
    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
            return;
        LoadInfo();
    }
    #region LoadDataInfo
    private void LoadInfo()
    {
        if (Session["MemberId"] != null)
        {
            _Member = MemberService.GetMember(long.Parse(Session["MemberId"].ToString()));
            if (_Member != null)
            {
                ltrMemberID.Text = "santila_" + _Member.MemberID.ToString();
                MembershipFee _MembershipFee = MembershipFeeService.GetMembershipFee(_Member.MembershipFeeID);
                if (_MembershipFee != null)
                {
                    ltrShipFree.Text = _MembershipFee.Title;
                }
            }
        }
        else
            Response.Redirect("MemberLogin.aspx");
    }
    
    #endregion
    #region SelectPayment
    protected void linkNext_Click(object sender, EventArgs e)
    {
        if (rdo_Writetranfer.Checked)
        {
            Response.Redirect("Wire_Transfer.aspx");
        }
        else if (rdo_Paypal.Checked)
        {
            Response.Redirect("Paypal.aspx");
        }
        else

            Response.Redirect("CreditCard.aspx");
    }
    
    #endregion
}
